<?php echo $this->doctype()?>
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<?php echo $this->headTitle()?>
		
		<meta http-equiv="content-type" content="charset=utf-8" />
		
		<?php $this->loadSkin($this->skin);?>
		<?php echo $this->headLink();?>
		<script type="text/javascript" src="<?php echo PUBLIC_URL.'/admin/js/jquery.js';?>"></script>
		<script type="text/javascript" src="<?php echo PUBLIC_URL.'/admin/js/script.js';?>"></script>
		<?php echo $this->headScript();?>
	</head>
	<body>
		<div id="all">
			<div id="header">
				<div id="logo">
					<a href="<?php $this->url(array(),"admin_dashboard");?>" title="IDG Dashboard">
						<img src="<?php echo PUBLIC_URL."/admin/images/cplogo.png";?>" alt="IDG LOGO"/>
					</a>
				</div>
				<div id="account">
					Xin chào: &nbsp; 
					<a href="<?php echo $this->url(array('id' => $this->identity->id), 'admin_user_edit');?>"><?php echo $this->identity->username;?></a>
					 &nbsp;| &nbsp;
					<a href="<?php echo $this->url(array(),"admin_logout");?>">Thoát</a>
				</div>
			</div><!-- end of header -->
			<div id="main">
				<div id="sidebar">
					<?php if($this->identity->role != 1){?>
					<div id="dashboard" class="box">
						<div class="b-title">
							<img src="<?php echo PUBLIC_URL.'/admin/images/home.png';?>" alt=""/>
							<a href="<?php echo $this->url(array(),"admin_dashboard");?>" title="">
								Bảng điều khiển
							</a>
						</div>
					</div><!-- end of .box#dashboard  -->
					<div id="article" class="box">
						<div class="b-title">
							<img src="<?php echo PUBLIC_URL.'/admin/images/article_menu.png';?>" alt=""/>
							<span>
								Quản lý bài viết
							</span>
						</div>
						<div class="b-container">
							<ul>
								<li ><a href="<?php echo $this->url(array('type' => 'article'),"admin_article_list");?>">Danh sách</a></li>
								<li><a href="<?php echo $this->url(array('type' => 'article'),"admin_category");?>">Chuyên mục</a></li>
								<li><a href="<?php echo $this->url(array('type' => 'article'),"admin_article_create");?>">Thêm mới</a></li>
							</ul>
						</div>
					</div><!-- end of .box#article  -->
					<div id="page" class="box">
						<div class="b-title">
							<img src="<?php echo PUBLIC_URL.'/admin/images/page_menu.png';?>" alt=""/>
							<span>
								Quản lý trang
							</span>
						</div>
						<div class="b-container">
							<ul>
								<li ><a href="<?php echo $this->url(array(),"admin_page_list");?>">Danh sách</a></li>
								<li><a href="<?php echo $this->url(array('type' => 'page'),"admin_category");?>">Chuyên mục</a></li>
								<li><a href="<?php echo $this->url(array(),"admin_page_create");?>">Thêm mới</a></li>
							</ul>
						</div>
					</div><!-- end of .box#page  -->
					<div id="product" class="box">
						<div class="b-title">
							<img src="<?php echo PUBLIC_URL.'/admin/images/product_menu1.png';?>" alt=""/>
							<span>
								Quản lý sản phẩm
							</span>
						</div>
						<div class="b-container">
							<ul>
								<li ><a href="<?php echo $this->url(array(),"admin_manufacturer");?>">Nhà Sản xuất</a></li>
								<li><a href="<?php echo $this->url(array(),"admin_pcategory");?>">Thể loại</a></li>
								<li><a href="<?php echo $this->url(array(),"admin_product_list");?>">Danh sách sản phẩm</a></li>
								<li><a href="<?php echo $this->url(array(),"admin_product_create");?>">Thêm mới</a></li>
								<li><a href="<?php echo $this->url(array(),"admin_bill_list");?>">Danh sách đơn hàng</a></li>
								<li><a href="<?php echo $this->url(array(),"admin_filter");?>">Bộ lọc</a></li>
							</ul>
						</div>
					</div><!-- end of .box#product  -->
					<div id="user" class="box">
						<div class="b-title">
							<img src="<?php echo PUBLIC_URL.'/admin/images/user_silhouette.png';?>" alt=""/>
							<a href="<?php $this->url(array(),"admin_dashboard");?>" title="">
								Quản lý người dùng
							</a>
						</div>
						<div class="b-container">
							<ul>
								<li ><a href="<?php echo $this->url(array(),'admin_user_list');?>">Danh sách</a></li>
								<li><a href="<?php echo $this->url(array(),'admin_user_create');?>">Thêm mới</a></li>
								<li><a href="<?php echo $this->url(array(),'admin_user_changepass');?>">Thay đổi mật khẩu</a></li>
							</ul>
						</div>
					</div><!-- end of .box#user  -->
					
					<div id="supporter" class="box"><!-- đang sửa -->
						<div class="b-title">
							<img src="<?php echo PUBLIC_URL.'/admin/images/system.png';?>" alt=""/>
							<span>
								Quản lý hệ thống
							</span>
						</div>
						<div class="b-container">
							<ul>
                                                <li ><a href="<?php echo $this->url(array(),'admin_tag');?>">Danh sách Tag</a></li>
								<li ><a href="<?php echo $this->url(array(),'admin_supporter_list');?>">Danh sách HTTT</a></li>
								<li><a href="<?php echo $this->url(array(),'admin_supporter_create');?>">Thêm mới TKHTTT</a></li>
								<li><a href="<?php echo $this->url(array(),'admin_banner');?>">Danh sách Banner</a></li>
								<li><a href="<?php echo $this->url(array(),'admin_menu');?>">Danh sách Menu</a></li>
								<li><a href="<?php echo $this->url(array(),'admin_promotion');?>">Upload trang khuyến mãi</a></li>
							</ul>
						</div>
					</div><!-- end of .box#supporter  -->
					<?php }else{ ?>
					<div id="product" class="box">
						<div class="b-title">
							<img src="<?php echo PUBLIC_URL.'/admin/images/product_menu1.png';?>" alt=""/>
							<span>
								Danh mục quản lý
							</span>
						</div>
						<div class="b-container">
							<ul>
								<li><a href="<?php echo $this->url(array(),"admin_bill_list");?>">Danh sách đơn hàng</a></li>
								<li><a href="<?php echo $this->url(array(),'admin_user_changepass');?>">Thay đổi mật khẩu</a></li>
							</ul>
						</div>
					</div><!-- end of .box#product  -->
					<?php }?>
					
				</div><!-- end of sidebar -->
				<div id="right">
					<?php echo $this->layout()->content;?>
				</div>
			</div><!-- end of main -->
		</div><!-- end of all -->
	</body>
</html>


